Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose populateStablehloToLinalgConversionPatterns function #2695

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

ScottTodd
Copy link
Member

This function declaration has existed since the code was forked from IREE in #1817, but the implementation was kept private (static function within an anonymous namespace).

I'm now trying to switch IREE from having its own implementation to using the upstream implementation from this project in iree-org/iree#19792, and I would like to access these patterns directly, instead of through the StablehloLegalizeToLinalgPass. With the patterns I can run conversion including my own sets of additional patterns, while a pass runs in isolation.

I'm also deleting the populateLegalizeChloPatterns, populateLegalizeControlFlowPatterns, and populateLegalizeShapeComputationPatterns declarations, which were not migrated from IREE and are also dangling without implementations.

@abhigunj abhigunj added the Transformations Pertaining to MLIR passes and transformations label Jan 23, 2025
@abhigunj abhigunj merged commit c27ba67 into openxla:main Jan 23, 2025
10 checks passed
@ScottTodd ScottTodd deleted the linalg-patterns branch January 23, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Transformations Pertaining to MLIR passes and transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants